#include"DLlist.h"



int main()
{
	DLT* head = ListInit();
	push_front(head, 1);
	push_back(head, 2);
	push_back(head, 3);
	push_front(head, 0);
	printf_List(head);
	pop_front(head);
	printf_List(head);
	pop_front(head);
	printf_List(head);
	pop_front(head);
	printf_List(head);
	pop_front(head);
	printf_List(head);

	push_front(head, 1);
	push_back(head, 2);
	push_back(head, 3);
	push_front(head, 0);

	pop_back(head);
	printf_List(head);
	pop_back(head);
	printf_List(head);
	pop_back(head);
	printf_List(head);
	pop_back(head);
	printf_List(head);

	push_front(head, 1);
	push_back(head, 2);
	push_back(head, 3);
	push_front(head, 0);


	DLT* land = find(head, 2);
	printf("%d\n", land->val);

	insert_anywhere_back(head->next->next, 5);
	printf_List(head);

	erase(head->next->next);
	printf_List(head);

	destroy(head);
	return 0;
}